<template>
  <div v-loading="dataLoading" class="data-loading">
    <slot v-show="!dataLoading"></slot>
  </div>
</template>

<script>
  export default {
    name: 'DataLoading',
    props: {
      dataLoading: Boolean
    }
  }
</script>

<style lang="scss">
  .data-loading {
    width: 100%;
    height: 100%;
  }
</style>
